import tkinter as tk
import logging
from src.ui import MainWindow
logging.getLogger('ppocr').setLevel(logging.WARNING)
# 配置日志
logging.basicConfig(
    filename='ocr_process.log',
    level=logging.INFO,
    format='%(asctime)s - %(levelname)s - %(message)s'
)

def main():
    root = tk.Tk()
    app = MainWindow(root)
    root.mainloop()

if __name__ == "__main__":
    main() 